package com.jushan.libappupdate;

import android.content.Context;

/**
 * @author Shaun_Xu
 * @description TODO
 * @date 2017/10/15
 */


public class AppUpdateManager {
    private AppUpdate update;

    private static class APPUpdateManagerHolder {
        public final static AppUpdateManager instance = new AppUpdateManager();
    }

    public static AppUpdateManager getInstance() {
        return APPUpdateManagerHolder.instance;
    }


    private AppUpdateManager() {
    }

    public void init(Context context) {
        if(update == null){
            update = new AppUpdate();
        }
        update.init(context);

    }

    public void checkUpdate(Context context){
        update.checkUpdate(context);
    }

}
